package com.lxyk.yygh.order.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ExpireUtils {

    /**
     * 设置微信二维码过期时间
     * @param expire
     * @return
     */
    public static String getOrderExpireTime(Long expire){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
        Date date = new Date();
        //ms数
        Date afterDate=new Date(date.getTime()+expire);
        String format = sdf.format(afterDate);
        return format;

    }
}
